﻿@model List<RedSand.Site.Models.NewsInfo>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="/Content/Frontend/rs-v10/css/listnews.css" rel="stylesheet" type="text/css" />
<div class="list-site-map clearfix">
    <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
        <a href="http://redsand.vn/@RedSand.Web.Language.RsLanguage.LanguageCode" itemprop="url"><span itemprop="title">@Html.Translate("Home","Menu")</span>
        </a>→
    </div>
    <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
        <a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/news/type/@ViewBag.Type" itemprop="url"><span itemprop="title">
            @ViewBag.TypeName
           </span> </a>→
    </div>
     <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
        <a href="javascript:void(0)" itemprop="url"><span itemprop="title">
            @ViewBag.Title</span> </a>
    </div>
</div>

<div class="news-list fl" style="width: 660px;">
    <h1 class="title-head">
        @ViewBag.Title
    </h1>
    <div class="dialog-content">
        @if (Model != null)
        {
            <ul>
                @foreach (var item in Model)
                {
                    <li>
                        <img class="news-image" src="@RedSand.Site.GlobalClass.GetImageUrl(item.Image)" alt="" width="100" height="100" />
                        <div class="fl" style="width: 385px">
                            <h3 class="news-title">
                                <a href="/@RedSand.Web.Language.RsLanguage.LanguageCode/news/details/@item.NewsID/@item.Title.ToUrlString()">@item.Title</a>
                            </h3>
                            <div class="createdate">@Html.DisplayFor(modelItem => item.CreateDate)</div>
                            <div class="description">@Html.Raw(item.Description)</div>
                        </div>
                    </li>
                }
            </ul>
            <div>
                @Html.Pager((int)ViewBag.TotalRecord, (object)ViewBag.RouteValues)
            </div>
        }
        else
        {
            <p>
               @Html.Translate("NewsUpdate","News")</p>
        }
    </div>
</div>
@Html.Action("GetListPriority", new { type = 1, TotalRecord = 8})
@Html.Action("GetListPriority", new { type = 2, TotalRecord = 8})
<div id="support-online" class="clearfix">
    @Html.Action("GetList", "Support")
</div>
